home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / flash-0.4.3 / plugin / makefile < prev    next >
Makefile  |  1999-01-01  |  1KB  |  55 lines

  1. #!make
  2. ################################################################################
  3. # Copyright (c) 1996 Netscape Communications. All rights reserved.
  4. ################################################################################
  5. #
  6. # The output of the make process will be npflash.so
  7. # Install this file either in
  8. #    /usr/lib/netscape/plugins/
  9. #    (or)
  10. #    ~/.netscape/plugins/
  11. #    (or) in any convenient directory and point environment variable
  12. #         NPX_PLUGIN_PATH to point to the directory. It is advisable
  13. #         that the plugins (.so) are the only files in that directory.
  14. #
  15. # This makefile contains some of our defines for the compiler:
  16. #
  17. # XP_UNIX    This needs to get defined for npapi.h on unix platforms.
  18. # PLUGIN_TRACE    Enable this define to get debug prints whenever the plugin
  19. #        api gets control.
  20. #          
  21.  
  22. PLUGIN_DEFINES= -DXP_UNIX
  23. OPTIMIZER= -O
  24. FLASH=../Lib
  25.  
  26. # Solaris
  27. #LIBCXX=/usr/lib/libC.so
  28. # gcc
  29. LIBCXX=
  30.  
  31. # Solaris (Sun compiler/linker)
  32. #SHARED=-G
  33. # FreeBSD
  34. #SHARED=-Bshareable
  35. # Linux
  36. SHARED=-shared
  37.  
  38. CFLAGS=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I$(FLASH) -I/usr/X11R6/include
  39. LDFLAGS= $(FLASH)/libflash.o $(LIBCXX)
  40.  
  41. SRC= plugin.c npunix.c
  42. OBJ= plugin.o npunix.o
  43.  
  44. SHAREDTARGET=npflash.so
  45.  
  46. default all: $(SHAREDTARGET)
  47.  
  48. $(SHAREDTARGET): $(OBJ) $(FLASH)/libflash.o
  49.     $(LD) $(SHARED) -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
  50.  
  51. plugin.o: $(FLASH)/flash.h
  52.  
  53. clean:
  54.     $(RM) $(OBJ) $(SHAREDTARGET)
  55.